{include file="public/head" /}
<title>岗位管理</title>
</head>

<body>
<div id="right_ctn">
    <div class="right_m">
        <div class="hy_list">
            <div class="box_t">
                <span class="name">岗位管理</span>
                <!--当前位置-->
                <div class="position">
                    <a><img src="__STATIC__/admin//images/icon5.png" alt=""/></a>
                    <a href="{:url('admin/Index/index')}" target="_top">首页</a>
                    <span><img src="__STATIC__/admin//images/icon3.png" alt=""/></span>
                    <a href="">用户管理</a>
                    <span><img src="__STATIC__/admin//images/icon3.png" alt=""/></span>
                    <a href="{:url('admin/JobsController/index')}">岗位管理</a>
                </div>
                <!--当前位置-->
            </div>
            <div class="space_hx">&nbsp;</div>
            <div class="xjhy" style="padding:0px;">
                <div class="tabBox_t">
                    <div class="tabBox">
                        <ul class="tabNav">
                            <li><span><a href="{:url('admin/JobsController/index')}">岗位信息</a></span></li>
                            <li><span><a href="{:url('admin/JobsController/add')}">添加岗位</a></span></li>
                            <li class="now"><span><a href="javascript:">修改岗位</a></span></li>
                        </ul>
                        <div class="tabCont" style="height: 200px;display: block">
                            <form action="{:url('admin/JobsController/editPost')}" method="post" id="form">
                                <div class="col-md-5">
                                    <div class="form-group">
                                        <label for="name"><span class="form-required">*</span>岗位名称</label>
                                        <input type="text" id="name" name="name" class="form-control" value="{$jobsData['name']}">
                                    </div>
                                    <div class="form-group">
                                        <label for="dep_id"><span class="form-required">*</span>所属部门</label>
                                        <select name="dep_id" id="dep_id" class="form-control">
                                            <option value="" hidden>请选择部门</option>
                                            {volist name="depList" id="vo"}
                                            {php}$selected = $jobsData['dep_id'] == $vo['id'] ? "selected" : "";{/php}
                                            <option value="{$vo.id}" {$selected}>{$vo.name}</option>
                                            {/volist}
                                        </select>
                                    </div>
                                    <div class="form-group">
                                        <input type="text" hidden name="id" value="{$jobsData['id']}">
                                        <a class="btn btn-primary ajax-submit">保存</a>
                                        <a class="btn btn-default" href="{:url('admin/JobsController/index')}">返回</a>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__STATIC__/js/ajax-form.js"></script>
</body>
</html>
